#export CC=`which clang`
#export CXX=`which clang++`

current_path=$(cd $(dirname "${BASH_SOURCE[0]}") && pwd)
project_root=$current_path/..
build_dir=$project_root/build

rm -drf $build_dir

if [ ! -d $build_dir ];then
    mkdir -p $build_dir
else
    echo "direction is exist!"
fi

cd $build_dir

cmake $project_root
make -j8

cd $current_path
